package com.cqwu.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * CmOption entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "cm_option", catalog = "common")
public class CmOption implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer questionId;
	private String optionId;
	private String optionValue;
	private boolean isShow;

	// Constructors

	/** default constructor */
	public CmOption() {
	}

	/** minimal constructor */
	public CmOption(Integer questionId, String optionId, String optionValue) {
		this.questionId = questionId;
		this.optionId = optionId;
		this.optionValue = optionValue;
	}

	/** full constructor */
	public CmOption(Integer questionId, String optionId, String optionValue,
			boolean isShow) {
		this.questionId = questionId;
		this.optionId = optionId;
		this.optionValue = optionValue;
		this.isShow = isShow;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "ID", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "questionID", nullable = false)
	public Integer getQuestionId() {
		return this.questionId;
	}

	public void setQuestionId(Integer questionId) {
		this.questionId = questionId;
	}

	@Column(name = "optionID", nullable = false, length = 1)
	public String getOptionId() {
		return this.optionId;
	}

	public void setOptionId(String optionId) {
		this.optionId = optionId;
	}

	@Column(name = "optionValue", nullable = false, length = 50)
	public String getOptionValue() {
		return this.optionValue;
	}

	public void setOptionValue(String optionValue) {
		this.optionValue = optionValue;
	}

	@Column(name = "isShow")
	public boolean getIsShow() {
		return this.isShow;
	}

	public void setIsShow(boolean isShow) {
		this.isShow = isShow;
	}

}